package com.tich.constant;

import java.sql.SQLException;

/**
 * 异常常量
 * */
public class ExceptionConstant {

    public static final Integer CODE_400 = 400;
    public static final Integer CODE_401 = 401;
    public static final Integer CODE_402 = 402;
    public static final Integer CODE_403 = 403;
    public static final Integer CODE_404 = 404;
    public static final Integer CODE_409 = 409;
    public static final Integer CODE_422 = 422;
    public static final Integer CODE_500 = 500;
    public static final String NOT_LOGIN = "未登录";
    public static final String INVALID_TOKEN = "无效的token";
    public static final String TIMEOUT_TOKEN = "token已经过期";
    public static final String USER_EXIST = "该用户已存在";
    public static final String UNKNOWN_ERROR = "未知错误";
    public static final String SYSTEM_BUSY = "系统繁忙，请稍后重试....";
    public static final String PARAM_ERROR = "参数错误: ";
    public static final String NOT_AUTHORIZED = "未授权";
    public static final String DATA_ANALYSE_ERROR = "数据解析失败";
    public static final String AI_REQUEST_ERROR = "大模型请求失败";
    public static final String FILE_ANALYSE_FAIL = "文件解析失败";
    public static final String SQL_SAVE_FAIL = "数据库添加失败";
    public static final String PROGRAM_NOT_FOUND = "节目不存在";
    public static final String PROGRAM_TICKET_NOT_FOUND = "节目门票不存在";
    public static final String PROGRAM_TICKET_SELLING_REJECT_UPDATE = "门票已开始出售，禁止修改";
    public static final String PROGRAM_TICKET_PRICE_LESS_ZERO = "票价不能小与等于0";
    public static final String PROGRAM_CATEGORY_NOT_FOUND = "节目种类不存在";
    public static final String TICKET_CATEGORY_NOT_FOUND = "门票种类不存在";
    public static final String SQLException = "Duplicate entry";
    public static final String PROGRAM_TAKE_OFF = "节目已下架";
    public static final String TICKET_LACK = "剩余票数不足";
    public static final String TICKET_PURCHASE_FAIL = "购买失败";
    public static final String ORDER_UNPAID = "订单未支付";
    public static final String ORDER_CANCEL_OR_PAID = "订单已支付或已取消";
    public static final String PAY_FAIL = "支付失败，请查看余额是否充足";
}
